package com.ruoyi.kiku.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.kiku.mapper.KikuFilmLinesMapper;
import com.ruoyi.kiku.domain.KikuFilmLines;
import com.ruoyi.kiku.service.IKikuFilmLinesService;

/**
 * 影视台词Service业务层处理
 * 
 * @author TT
 * @date 2025-07-31
 */
@Service
public class KikuFilmLinesServiceImpl implements IKikuFilmLinesService 
{
    @Autowired
    private KikuFilmLinesMapper kikuFilmLinesMapper;

    /**
     * 查询影视台词
     * 
     * @param id 影视台词主键
     * @return 影视台词
     */
    @Override
    public KikuFilmLines selectKikuFilmLinesById(Long id)
    {
        return kikuFilmLinesMapper.selectKikuFilmLinesById(id);
    }

    /**
     * 查询影视台词列表
     * 
     * @param kikuFilmLines 影视台词
     * @return 影视台词
     */
    @Override
    public List<KikuFilmLines> selectKikuFilmLinesList(KikuFilmLines kikuFilmLines)
    {
        return kikuFilmLinesMapper.selectKikuFilmLinesList(kikuFilmLines);
    }

    /**
     * 新增影视台词
     * 
     * @param kikuFilmLines 影视台词
     * @return 结果
     */
    @Override
    public int insertKikuFilmLines(KikuFilmLines kikuFilmLines)
    {
        kikuFilmLines.setCreateTime(DateUtils.getNowDate());
        return kikuFilmLinesMapper.insertKikuFilmLines(kikuFilmLines);
    }

    /**
     * 修改影视台词
     * 
     * @param kikuFilmLines 影视台词
     * @return 结果
     */
    @Override
    public int updateKikuFilmLines(KikuFilmLines kikuFilmLines)
    {
        kikuFilmLines.setUpdateTime(DateUtils.getNowDate());
        return kikuFilmLinesMapper.updateKikuFilmLines(kikuFilmLines);
    }

    /**
     * 批量删除影视台词
     * 
     * @param ids 需要删除的影视台词主键
     * @return 结果
     */
    @Override
    public int deleteKikuFilmLinesByIds(Long[] ids)
    {
        return kikuFilmLinesMapper.deleteKikuFilmLinesByIds(ids);
    }

    /**
     * 删除影视台词信息
     * 
     * @param id 影视台词主键
     * @return 结果
     */
    @Override
    public int deleteKikuFilmLinesById(Long id)
    {
        return kikuFilmLinesMapper.deleteKikuFilmLinesById(id);
    }
}
